package pers.cocoadel.springcloud.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import pers.cocoadel.springcloud.entities.CommonResult;

@FeignClient(value = "cloud-alibaba-seata-storage")
public interface StorageService
{
    @PostMapping("/storage/decrease")
    CommonResult<?> decrease(@RequestParam("productId") Long productId, @RequestParam("count") Integer count);
}
